package com.mhkj.base.busiType.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.mics.core.common.validate.annotation.NotNull;
import com.mics.core.common.validate.annotation.Unique;
import com.mics.core.common.validate.annotation.Validate;
import com.mics.core.system.base.entity.BaseDomain;

/**
 * 业务类型实体
 * 
 * @author ypx
 * @date 2018年7月2日
 * @version 1.0
 */
@Entity
@Table(name = "t_business_type")
@Validate
public class BusinessType extends BaseDomain {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4010218475082635285L;

	/**
	 * 业务类型编号
	 */
	@NotNull(message = "业务类型编号不能为空")
	@Column(name = "type_coding",length=48)
	@Unique(message="业务类型编号必须唯一")
	private String typeCoding;

	/**
	 * 业务类型名称
	 */
	@NotNull(message = "业务类型名称不能为空")
	@Column(name = "type_name",length=48)
	@Unique(message="业务类型名称必须唯一")
	private String typeName;

	/**
	 * 备注
	 */
	@Column(name = "note",length=225)
	private String note;

	/**
	 * 创建人
	 */
	@Transient
	private String createName;

	public String getTypeCoding() {
		return typeCoding;
	}

	public void setTypeCoding(String typeCoding) {
		this.typeCoding = typeCoding;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

}
